from __future__ import division
from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, TemplateNotFound
name = '/admin/base.html'

def root(context, environment=environment):
    block_context = context._block()
    l_menu_view = context.resolve('menu_view')
    l_config = context.resolve('config')
    l_menu_new = context.resolve('menu_new')
    t_1 = environment.filters['e']
    if 0: yield None
    yield u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\n<head>\n    <title>'
    for event in context.blocks['title'][0](block_context):
        yield event
    yield u'</title>\n    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />\n\t<link rel="alternate" type="application/atom+xml" href="/feeds/atom.xml" />\n    <link rel="stylesheet" href="http://yui.yahooapis.com/2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css" />\n    <link rel="stylesheet" href="/media/admin/css/yuiapp.css" type="text/css" />\n    <link id="theme" rel="stylesheet" href="/media/admin/css/warehouse.css" type="text/css" />\n\t'
    for event in context.blocks['head'][0](block_context):
        yield event
    yield u'\n</head>\n<body class="rounded yui-skin-sam">\n    <div id="doc4" class="yui-t5">\n        <div id="hd">\n\t\t\t<div id="hd_logo"><a href="http://www.theokayblog.com/"><img src="/media/admin/images/ok_logo_tiny.jpeg" /></a></div>\n            <h1>%s Admin</h1>\n            <div id="navigation">\n                <ul id="primary-navigation">\n                    <li><a href="/">View Blog</a></li>\n\t\t            <li ' % (
        escape(environment.getattr(l_config, 'blog_name')), 
    )
    if l_menu_view:
        if 0: yield None
        yield u'class="active"'
    yield u'><a href="/admin/">View Posts</a></li>\n\t\t            <li '
    if l_menu_new:
        if 0: yield None
        yield u'class="active"'
    yield u'><a href="/admin/newpost">New Posts</a></li>\n                </ul>\n                <div class="clear"></div>\n            </div>\n        </div>\n        <div id="bd">\n            <div id="yui-main">\n                <div class="yui-b"><div class="yui-g">\n\t\t\t\t\t'
    for event in context.blocks['body'][0](block_context):
        yield event
    yield u'\n                </div></div>\n            </div>\n            <div id="sidebar" class="yui-b">\n\n                <!-- Sidebar block (same markup as basic block) -->\n                <div class="block">\n                    <div class="hd">\n                        <h2>Google Search</h2>\n                    </div>\n                    <div class="bd">\n\t\t\t\t\t    <form id="quick-search" action="/search" method="get">\n\t\t\t\t\t      <p>\n\t\t\t\t\t        <label for="q">Search:</label>\n\t\t\t\t\t        <input type="hidden" name="cref" value="http://%s/cse.xml" />\n\t\t\t\t\t        <input type="hidden" name="cof" value="FORID:11" />\n\t\t\t\t\t        <input type="hidden" name="ie" value="UTF-8" />\n\t\t\t\t\t        <input class="tbox" type="text" id="q" name="q" size="21" />\n\t\t\t\t\t      </p>\n\t\t\t\t\t    </form>\n\t\t\t\t\t\t<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=quick-search&amp;lang=en"></script>\t\t\t\t\t\n\t\t\t\t     </div>\t\n                </div>\n                <!-- Sidebars -->\n\t\t\t\t' % (
        escape(environment.getattr(l_config, 'host')), 
    )
    l_sidebar = missing
    for l_sidebar in environment.getattr(l_config, 'sidebars'):
        if 0: yield None
        yield u'\n                <div class="block">\n                    <div class="hd">\n                        <h2>%s</h2>\n                    </div>\n                    <div class="bd">\n\t\t\t\t          <ul class="biglist">\n\t\t\t\t\t\t\t' % (
            escape(environment.getitem(l_sidebar, 0)), 
        )
        l_entry = missing
        for l_entry in environment.getitem(l_sidebar, 1):
            if 0: yield None
            yield u'\n\t\t\t\t            <li><a href="%s" title="%s">%s</a></li>\n\t\t\t\t\t\t\t' % (
                escape(environment.getitem(l_entry, 1)), 
                escape(t_1(environment.getitem(l_entry, 0))), 
                escape(environment.getitem(l_entry, 0)), 
            )
        l_entry = missing
        yield u'\n\t\t\t\t          </ul>\n                    </div>\n                </div>\n\t\t        '
    l_sidebar = missing
    yield u'\n\n            </div>\n        </div>\n        <div id="ft">\n            <p class="inner">Copyright &copy; 2009 %s</p>\n\t\t\t<p><a href="http://www.theokayblog.com"><img id="ft_logo" src="/media/admin/images/ok_logo_tiny.jpeg"  title="Powered by the O-Kay-Blog"/></a></p>\n        </div>\n    </div>\n</body>\n</html>\n\n' % (
        escape(environment.getattr(l_config, 'blog_name')), 
    )

def block_body(context, environment=environment):
    if 0: yield None

def block_head(context, environment=environment):
    if 0: yield None

def block_title(context, environment=environment):
    if 0: yield None
    yield u' The O-Kay-Blog'

blocks = {'body': block_body, 'head': block_head, 'title': block_title}
debug_info = '1=12&4=13&10=16&16=19&20=21&21=25&29=29&43=32&53=35&56=38&60=41&61=44&62=49&66=51&71=52&29=55&10=58&4=61'